
Ext.BLANK_IMAGE_URL = '../../extjs3/resources/images/default/s.gif';


Ext.onReady(function (){

	var item = new Ext.form.TextField({
        id:"from",
        fieldLabel:"From"}); 
    var renderer = new Ext.ux.Tn5250.Renderer({devName : 'test', closable: true, disableSelect: true, debug :true});

var vport = new Ext.Viewport({
     items : renderer,
     layout: 'fit'
   }).show();

     renderer.render5250(testdata1);
});

var testdata1 = [{e1:0,e3:0,e4:0,e5:0,e7:0,e8:0,e9:0,ea:"              "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:0,ea:">> Welcome to the best known public AS/400| << "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:0,ea:"                   "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:1,ea:"                                                                                "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:2,ea:" System name: "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:2,ea:"PUB1     "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:2,ea:"           subsystem : "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:2,ea:"QINTER     "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:2,ea:"devicename: "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:2,ea:"QPADEV0080 "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:2,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:3,ea:" Username/Benutzer:  "},
                 {e1:0,e3:8193,e4:1,e5:0,e7:10,e8:10,e9:0,ea:""},
                 {e1:0,e3:0,e4:0,e5:54,e7:0,e8:0,e9:3,ea:" "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:3,ea:"  Password  : "},
                 {e1:1,e3:1,e4:2,e5:0,e7:10,e8:10,e9:0,ea:""},
                 {e1:0,e3:0,e4:0,e5:39,e7:0,e8:0,e9:3,ea:" "},
                 {e1:0,e3:0,e4:0,e5:48,e7:0,e8:0,e9:3,ea:"(enter blind) "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:3,ea:"         "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:4,ea:"                                                                                "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:5,ea:"                                                                                "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:6,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:6,ea:"/\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00B0\u00D6 "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:6,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:6,ea:"* System running normal *                "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:6,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:7,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:7,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:40,e7:0,e8:0,e9:7,ea:"Rechenzentrum Kreuznach "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:7,ea:"        "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:7,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:7,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:7,ea:"                                         "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:7,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:8,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:8,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:50,e7:0,e8:0,e9:8,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:8,ea:"                              "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:8,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:8,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:8,ea:"                                         "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:8,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:9,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:9,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:9,ea:"              "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:9,ea:"- "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:9,ea:"                "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:9,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:9,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:9,ea:"                                         "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:9,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:10,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:10,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:10,ea:"Holger L. Scherer               "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:10,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:10,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:10,ea:"                                         "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:10,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:11,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:11,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:11,ea:"Jungstrasse 25-27               "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:11,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:11,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:11,ea:"                                         "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:11,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:12,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:12,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:12,ea:"55543 Bad Kreuznach             "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:12,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:12,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:12,ea:"                                         "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:12,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:13,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:13,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:13,ea:"Germany                         "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:13,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:13,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:13,ea:"                                         "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:13,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:14,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:14,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:14,ea:"support400\u00A7RZKH.de              "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:14,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:14,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:14,ea:"                                         "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:14,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:15,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:15,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:15,ea:"Tel. +49-671-9203029            "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:15,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:15,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:15,ea:"==> Status page: http://twitter.com/rzkh "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:15,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:16,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:16,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:48,e7:0,e8:0,e9:16,ea:"iSeries-Hosting, ERP-Software, "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:16,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:16,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:16,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:16,ea:"==> English help pages:                  "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:16,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:17,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:17,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:48,e7:0,e8:0,e9:17,ea:"advanced data processing "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:17,ea:"       "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:17,ea:"] "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:17,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:17,ea:"     http://pub1.RZKH.de/forumeng.html   "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:17,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:18,ea:" "},
                 {e1:0,e3:0,e4:0,e5:58,e7:0,e8:0,e9:18,ea:"\u00D6_________________________________/ "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:18,ea:"  "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:18,ea:"==> Deutsche Hilfeseiten:                "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:18,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:19,ea:"                                       "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:19,ea:"     http://pub1.RZKH.de/forum.html      "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:19,ea:""},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:20,ea:"                                                                                "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:21,ea:" "},
                 {e1:0,e3:0,e4:0,e5:33,e7:0,e8:0,e9:21,ea:"NOTE: Backup running - lower system performance|                               "},
                 {e1:0,e3:0,e4:0,e5:33,e7:0,e8:0,e9:22,ea:" "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:22,ea:"                                      "},
                 {e1:0,e3:0,e4:0,e5:34,e7:0,e8:0,e9:22,ea:"powered by www.RZKH.de "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:22,ea:"                  "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:23,ea:"                                                                                "},
                 {e1:0,e3:0,e4:0,e5:32,e7:0,e8:0,e9:24,ea:""}];                 